package com.gscitysfy.cus.drain.modules.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.util.List;

/**
 * @author 葛守跃
 * @version 1.0.0
 * @ClassName Tree
 * @Description TODO
 * @creatTime 2022/6/14 16:24
 */
public class Tree {
    private String id;
    private String label;
    private boolean isPerson;
    @JSONField(
            serialzeFeatures = {SerializerFeature.WriteMapNullValue}
    )
    private List<Tree> children;

    public Tree() {
    }

    @Override
    public String toString() {
        return "TreeVo{id='" + this.id + "', label='" + this.label + "', children=" + this.children + "}";
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLabel() {
        return this.label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<Tree> getChildren() {
        return this.children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }

    public boolean isPerson() {
        return isPerson;
    }

    public void setPerson(boolean person) {
        isPerson = person;
    }
}
